package com.softserveinc.cheatsheet.dao;

import java.util.List;

import com.softserveinc.cheatsheet.entity.UserAccount;
import com.softserveinc.cheatsheet.entity.UserAuthority;

public interface UserAccountDao{
	// Create methods
	public void create(UserAccount account);

	public void create(UserAuthority userAuthority);
	
	// Read methods
	public List<UserAccount> list();

	public UserAccount read(Long id);

	public UserAccount read(String accountName);

	public UserAuthority readUserRole(String roleName);

	// Update methods
	public void update(UserAccount account);

	// Delete methods
	public void delete(UserAccount account);

	public void delete(Long id);

}
